home *** CD-ROM | disk | FTP | other *** search
/ Webshot XL / WEBSHOP_XL.ISO / WebShop XL / data1.cab / Program_DLLs / JScript.mdb / Statements.json < prev   
JavaScript Object Notation  |  2001-09-05  |  11KB

  1. {
  2.     "schema": {
  3.         "ID": "Long Integer",
  4.         "Language": "Long Integer",
  5.         "Name": "Text (50)",
  6.         "Description": "Text (255)",
  7.         "Sintax 1": "Text (255)",
  8.         "Sintax 2": "Text (250)",
  9.         "Sintax 3": "Text (255)"
  10.     },
  11.     "data": [
  12.         {
  13.             "ID": 1,
  14.             "Language": 0,
  15.             "Name": "break",
  16.             "Description": "Terminates the current loop, or if in conjunction with a label, terminates the associated statement.",
  17.             "Sintax 1": "break [<label>];"
  18.         },
  19.         {
  20.             "ID": 2,
  21.             "Language": 0,
  22.             "Name": "try...catch",
  23.             "Description": "Implements error handling for JScript.",
  24.             "Sintax 1": "try\r\n  <tryStatement>\r\ncatch(<exception>)\r\n  <catchStatement>"
  25.         },
  26.         {
  27.             "ID": 3,
  28.             "Language": 0,
  29.             "Name": "@cc_on",
  30.             "Description": "Activates conditional compilation support.",
  31.             "Sintax 1": "@cc_on"
  32.         },
  33.         {
  34.             "ID": 5,
  35.             "Language": 0,
  36.             "Name": "//",
  37.             "Description": "Causes comments to be ignored by the JScript parser.",
  38.             "Sintax 1": "// <comment>",
  39.             "Sintax 2": "/*\r\n<comment>\r\n*/",
  40.             "Sintax 3": "/*@\r\n<CondStatement>\r\n@*/"
  41.         },
  42.         {
  43.             "ID": 6,
  44.             "Language": 0,
  45.             "Name": "continue",
  46.             "Description": "Stops the current iteration of a loop, and starts a new iteration.",
  47.             "Sintax 1": "continue [<label>];"
  48.         },
  49.         {
  50.             "ID": 7,
  51.             "Language": 0,
  52.             "Name": "do...while",
  53.             "Description": "Executes a statement block once, and then repeats execution of the loop until a condition expression evaluates to false.",
  54.             "Sintax 1": "do\r\n   <statement>\r\nwhile (<expression>) ;"
  55.         },
  56.         {
  57.             "ID": 8,
  58.             "Language": 0,
  59.             "Name": "for",
  60.             "Description": "Executes a block of statements for as long as a specified condition is true.",
  61.             "Sintax 1": "for (<initialization>; <test>; <increment>)\r\n    <statement>"
  62.         },
  63.         {
  64.             "ID": 9,
  65.             "Language": 0,
  66.             "Name": "for ... in",
  67.             "Description": "Executes one or more statements for each property of an object, or each element of an array.",
  68.             "Sintax 1": "for (<variable> in [<object | array>])\r\n    <statement>"
  69.         },
  70.         {
  71.             "ID": 10,
  72.             "Language": 0,
  73.             "Name": "function",
  74.             "Description": "Declares a new function.",
  75.             "Sintax 1": "function functionname([<argument1> [, <argument2> [, ΓǪ<argumentn>]]])\r\n{\r\n  <statements>\r\n}"
  76.         },
  77.         {
  78.             "ID": 11,
  79.             "Language": 0,
  80.             "Name": "@if",
  81.             "Description": "Conditionally executes a group of statements, depending on the value of an expression.",
  82.             "Sintax 1": "@if (<condition1>)\r\n     <text1>\r\n[@elif (<condition2>)\r\n     <text2>]\r\n[@else\r\n     <text3>]\r\n@end"
  83.         },
  84.         {
  85.             "ID": 12,
  86.             "Language": 0,
  87.             "Name": "if...else",
  88.             "Description": "Conditionally executes a group of statements, depending on the value of an expression.",
  89.             "Sintax 1": "if (<condition>)\r\n     <statement1>\r\n[else\r\n     <statement2>]"
  90.         },
  91.         {
  92.             "ID": 13,
  93.             "Language": 0,
  94.             "Name": ":",
  95.             "Description": "Provides an identifier for a statement.",
  96.             "Sintax 1": "<label> :\r\n    <statement>"
  97.         },
  98.         {
  99.             "ID": 14,
  100.             "Language": 0,
  101.             "Name": "return",
  102.             "Description": "Exits from the current function and returns a value from that function.",
  103.             "Sintax 1": "return [<expression>];"
  104.         },
  105.         {
  106.             "ID": 15,
  107.             "Language": 0,
  108.             "Name": "@set",
  109.             "Description": "Creates variables used with conditional compilation statements.",
  110.             "Sintax 1": "@set @<varname> = <term>"
  111.         },
  112.         {
  113.             "ID": 16,
  114.             "Language": 0,
  115.             "Name": "switch...case",
  116.             "Description": "Enables the execution of one or more statements when a specified expression's value matches a label.",
  117.             "Sintax 1": "switch (<expression>) {\r\n   case <label> :\r\n      <statementlist>\r\n   case <label> :\r\n      <statementlist>\r\n   ...\r\n   default :\r\n      <statementlist>\r\n}"
  118.         },
  119.         {
  120.             "ID": 17,
  121.             "Language": 0,
  122.             "Name": "this",
  123.             "Description": "Refers to the current object.",
  124.             "Sintax 1": "this.<property>"
  125.         },
  126.         {
  127.             "ID": 18,
  128.             "Language": 0,
  129.             "Name": "throw",
  130.             "Description": "Generates an error condition that can be handled by a try...catch statement.",
  131.             "Sintax 1": "throw <exception>"
  132.         },
  133.         {
  134.             "ID": 19,
  135.             "Language": 0,
  136.             "Name": "var",
  137.             "Description": "Declares a variable.",
  138.             "Sintax 1": "var <variable> [ = <value> ] [, <variable2> [ = <value2>], ...]"
  139.         },
  140.         {
  141.             "ID": 20,
  142.             "Language": 0,
  143.             "Name": "while",
  144.             "Description": "Executes a statement until a specified condition is false.",
  145.             "Sintax 1": "while (<expression>)\r\n   <statement>"
  146.         },
  147.         {
  148.             "ID": 21,
  149.             "Language": 0,
  150.             "Name": "with",
  151.             "Description": "Establishes the default object for a statement.",
  152.             "Sintax 1": "with (<object>)\r\n   <statement>"
  153.         },
  154.         {
  155.             "ID": 22,
  156.             "Language": 1,
  157.             "Name": "Call",
  158.             "Description": "Transfers control to a Sub or Function procedure.",
  159.             "Sintax 1": "[Call] <name>(<argumentlist>)"
  160.         },
  161.         {
  162.             "ID": 23,
  163.             "Language": 1,
  164.             "Name": "Class",
  165.             "Description": "Declares the name of a class, as well as a definition of the variables, properties, and methods that comprise the class.",
  166.             "Sintax 1": "Class <name>\r\n    <statements>\r\nEnd Class"
  167.         },
  168.         {
  169.             "ID": 24,
  170.             "Language": 1,
  171.             "Name": "Const",
  172.             "Description": "Declares constants for use in place of literal values.",
  173.             "Sintax 1": "[Public | Private] Const <constname> = <expression>"
  174.         },
  175.         {
  176.             "ID": 25,
  177.             "Language": 1,
  178.             "Name": "Dim",
  179.             "Description": "Declares variables and allocates storage space.",
  180.             "Sintax 1": "Dim <varname>[([<subscripts>])][, <varname>[([<subscripts>])]] . . ."
  181.         },
  182.         {
  183.             "ID": 26,
  184.             "Language": 1,
  185.             "Name": "Do...Loop",
  186.             "Description": "Repeats a block of statements while a condition is True or until a condition becomes True.",
  187.             "Sintax 1": "Do [{While | Until} <condition>]\r\n    [<statements>]\r\n    [Exit Do]\r\n    [<statements>]\r\nLoop",
  188.             "Sintax 2": "Do\r\n    [<statements>]\r\n    [Exit Do]\r\n    [<statements>]\r\nLoop [{While | Until} <condition>]"
  189.         },
  190.         {
  191.             "ID": 27,
  192.             "Language": 1,
  193.             "Name": "Erase",
  194.             "Description": "Reinitializes the elements of fixed-size arrays and deallocates dynamic-array storage space.",
  195.             "Sintax 1": "Erase <array>"
  196.         },
  197.         {
  198.             "ID": 28,
  199.             "Language": 1,
  200.             "Name": "Execute",
  201.             "Description": "Executes one or more specified statements.",
  202.             "Sintax 1": "Execute <statement>"
  203.         },
  204.         {
  205.             "ID": 29,
  206.             "Language": 1,
  207.             "Name": "ExecuteGlobal",
  208.             "Description": "Executes one or more specified statements in the global namespace of a script.",
  209.             "Sintax 1": "ExecuteGlobal <statement>"
  210.         },
  211.         {
  212.             "ID": 30,
  213.             "Language": 1,
  214.             "Name": "Exit",
  215.             "Description": "Exits a block of Do...Loop, For...Next, Function, or Sub code.",
  216.             "Sintax 1": "Exit Do For Function Property Sub"
  217.         },
  218.         {
  219.             "ID": 31,
  220.             "Language": 1,
  221.             "Name": "For...Next",
  222.             "Description": "Repeats a group of statements a specified number of times.",
  223.             "Sintax 1": "For <counter> = <start> To <end> [Step <step>]\r\n    [<statements>]\r\n    [Exit For]\r\n    [<statements>]\r\nNext"
  224.         },
  225.         {
  226.             "ID": 32,
  227.             "Language": 1,
  228.             "Name": "For Each...Next",
  229.             "Description": "Repeats a group of statements for each element in an array or collection.",
  230.             "Sintax 1": "For Each <element> In <group>\r\n    [<statements>]\r\n    [Exit For]\r\n    [<statements>]\r\nNext [<element>]"
  231.         },
  232.         {
  233.             "ID": 33,
  234.             "Language": 1,
  235.             "Name": "Function",
  236.             "Description": "Declares the name, arguments, and code that form the body of a Function procedure.",
  237.             "Sintax 1": "[Public [Default] | Private] Function <name> [(<arglist>)]\r\n    [<statements>]\r\n    [<name> = <expression>]\r\n    [Exit Function] \r\n    [<statements>]\r\n    [<name> = <expression>]\r\nEnd Function"
  238.         },
  239.         {
  240.             "ID": 34,
  241.             "Language": 1,
  242.             "Name": "If...Then...Else",
  243.             "Description": "Conditionally executes a group of statements, depending on the value of an expression.",
  244.             "Sintax 1": "If <condition> Then <statements> [Else <elsestatements> ]",
  245.             "Sintax 2": "If <condition> Then\r\n    [<statements>]\r\n[ElseIf <condition-n> Then\r\n    [<elseifstatements>]] . . .\r\n[Else\r\n    [<elsestatements>]]\r\nEnd If"
  246.         },
  247.         {
  248.             "ID": 35,
  249.             "Language": 1,
  250.             "Name": "On Error",
  251.             "Description": "Enables or disables error-handling.",
  252.             "Sintax 1": "On Error Resume Next",
  253.             "Sintax 2": "On Error GoTo 0"
  254.         },
  255.         {
  256.             "ID": 36,
  257.             "Language": 1,
  258.             "Name": "Option Explicit",
  259.             "Description": "Forces explicit declaration of all variables in a script.",
  260.             "Sintax 1": "Option Explicit"
  261.         },
  262.         {
  263.             "ID": 37,
  264.             "Language": 1,
  265.             "Name": "Private",
  266.             "Description": "Declares private variables and allocates storage space. Declares, in a Class block, a private variable.",
  267.             "Sintax 1": "Private <varname>[([<subscripts>])][, <varname>[([<subscripts>])]] . . ."
  268.         },
  269.         {
  270.             "ID": 38,
  271.             "Language": 1,
  272.             "Name": "Property Get",
  273.             "Description": "Declares, in a Class block, the name, arguments, and code that form the body of a Property procedure that gets (returns) the value of a property.",
  274.             "Sintax 1": "[Public [Default]| Private] Property Get <name> [(<arglist>)]\r\n    [<statements>]\r\n    [[Set] <name> = <expression>]\r\n    [Exit Property] \r\n    [<statements>]\r\n    [[Set] <name> = <expression>]\r\nEnd Property"
  275.         },
  276.         {
  277.             "ID": 39,
  278.             "Language": 1,
  279.             "Name": "Property Let",
  280.             "Description": "Declares, in a Class block, the name, arguments, and code that form the body of a Property procedure that assigns (sets) the value of a property.",
  281.             "Sintax 1": "[Public | Private] Property Let <name> ([<arglist>,] <value>)\r\n    [<statements>]\r\n    [Exit Property] \r\n    [<statements>]\r\nEnd Property"
  282.         },
  283.         {
  284.             "ID": 40,
  285.             "Language": 1,
  286.             "Name": "Property Set",
  287.             "Description": "Declares, in a Class block, the name, arguments, and code that form the body of a Property procedure that sets a reference to an object.",
  288.             "Sintax 1": "[Public | Private] Property Set <name>([<arglist>,] <reference>)\r\n    [<statements>]\r\n    [Exit Property] \r\n    [<statements>]\r\nEnd Property"
  289.         },
  290.         {
  291.             "ID": 41,
  292.             "Language": 1,
  293.             "Name": "Public",
  294.             "Description": "Declares public variables and allocates storage space. Declares, in a Class block, a private variable.",
  295.             "Sintax 1": "Public <varname>[([<subscripts>])][, <varname>[([<subscripts>])]] . . ."
  296.         },
  297.         {
  298.             "ID": 42,
  299.             "Language": 1,
  300.             "Name": "Randomize",
  301.             "Description": "Initializes the random-number generator.",
  302.             "Sintax 1": "Randomize [<number>]"
  303.         },
  304.         {
  305.             "ID": 43,
  306.             "Language": 1,
  307.             "Name": "ReDim",
  308.             "Description": "Declares dynamic-array variables, and allocates or reallocates storage space at procedure level.",
  309.             "Sintax 1": "ReDim [Preserve] <varname>(<subscripts>) [, <varname>(<subscripts>)] . . ."
  310.         },
  311.         {
  312.             "ID": 44,
  313.             "Language": 1,
  314.             "Name": "Rem",
  315.             "Description": "Includes explanatory remarks in a program.",
  316.             "Sintax 1": "Rem <comment>",
  317.             "Sintax 2": "' <comment>"
  318.         },
  319.         {
  320.             "ID": 45,
  321.             "Language": 1,
  322.             "Name": "Select Case",
  323.             "Description": "Executes one of several groups of statements, depending on the value of an expression.",
  324.             "Sintax 1": "Select Case <testexpression>\r\n    [Case <expressionlist-n>\r\n        [<statements-n>]] . . .\r\n    [Case Else <expressionlist-n>\r\n        [<elsestatements-n>]]\r\nEnd Select"
  325.         },
  326.         {
  327.             "ID": 46,
  328.             "Language": 1,
  329.             "Name": "Set",
  330.             "Description": "Assigns an object reference to a variable or property, or associates a procedure reference with an event.",
  331.             "Sintax 1": "Set <objectvar> = {<objectexpression> | New <classname> | Nothing}",
  332.             "Sintax 2": "Set <object.eventname> = GetRef(<procname>)"
  333.         },
  334.         {
  335.             "ID": 47,
  336.             "Language": 1,
  337.             "Name": "Sub",
  338.             "Description": "Declares the name, arguments, and code that form the body of a Sub procedure.",
  339.             "Sintax 1": "[Public [Default]| Private] Sub <name> [(<arglist>)] \r\n    [<statements>]\r\n    [Exit Sub]\r\n    [<statements>]\r\nEnd Sub"
  340.         },
  341.         {
  342.             "ID": 48,
  343.             "Language": 1,
  344.             "Name": "While...Wend",
  345.             "Description": "Executes a series of statements as long as a given condition is True.\r\nSyntaxExecutes a series of statements as long as a given condition is True.",
  346.             "Sintax 1": "While <condition>\r\n   Version [<statements>]\r\nWend"
  347.         },
  348.         {
  349.             "ID": 49,
  350.             "Language": 1,
  351.             "Name": "With",
  352.             "Description": "Executes a series of statements on a single object.",
  353.             "Sintax 1": "With <object>\r\n    <statements>\r\nEnd With"
  354.         }
  355.     ]
  356. }